<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      Tigervnc-1.10.1
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;41.&nbsp;Other X-based Programs
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="thunderbird.html" title=
          "Thunderbird-68.6.0">Prev</a>
          <p>
            Thunderbird-68.6.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="transmission.html" title=
          "Transmission-2.94">Next</a>
          <p>
            Transmission-2.94
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="other.html" title=
          "Chapter&nbsp;41.&nbsp;Other X-based Programs">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="tigervnc" name="tigervnc"></a>Tigervnc-1.10.1
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Tigervnc
        </h2>
        <p>
          <span class="application">Tigervnc</span> is an advanced VNC
          (Virtual Network Computing) implementation. It allows creation of
          an Xorg server not tied to a physical console and also provides a
          client for viewing of the remote graphical desktop.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://github.com/TigerVNC/tigervnc/archive/v1.10.1/tigervnc-1.10.1.tar.gz">
                https://github.com/TigerVNC/tigervnc/archive/v1.10.1/tigervnc-1.10.1.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 0c38334c7a52d304c30fac7802125a49
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 1.3 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 94 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 1.2 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Additional Downloads
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Required file: <a class="ulink" href=
                "https://www.x.org/pub/individual/xserver/xorg-server-1.20.4.tar.bz2">
                https://www.x.org/pub/individual/xserver/xorg-server-1.20.4.tar.bz2</a>
              </p>
            </li>
          </ul>
        </div>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            The version of <span class="application">Xorg</span> may
            eventually be a few versions out of date, but is required for the
            customizations needed for this package.
          </p>
        </div>
        <h3>
          Tigervnc Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="../general/cmake.html" title=
          "CMake-3.17.0">CMake-3.17.0</a>, <a class="xref" href=
          "../x/fltk.html" title="FLTK-1.3.5">FLTK-1.3.5</a>, <a class="xref"
          href="../postlfs/gnutls.html" title=
          "GnuTLS-3.6.13">GnuTLS-3.6.13</a>, <a class="xref" href=
          "../general/libgcrypt.html" title=
          "libgcrypt-1.8.5">libgcrypt-1.8.5</a>, <a class="xref" href=
          "../general/libjpeg.html" title=
          "libjpeg-turbo-2.0.4">libjpeg-turbo-2.0.4</a>, <a class="xref"
          href="../general/pixman.html" title=
          "Pixman-0.38.4">Pixman-0.38.4</a>, <a class="xref" href=
          "../x/x7app.html" title="Xorg Applications">Xorg Applications</a>,
          and <a class="xref" href="../x/x7legacy.html" title=
          "Xorg Legacy">Xorg Legacy Fonts</a>
        </p>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="../general/imagemagick.html" title=
          "ImageMagick-7.0.9-23">ImageMagick-7.0.9-23</a> and <a class="xref"
          href="../postlfs/linux-pam.html" title=
          "Linux-PAM-1.3.1">Linux-PAM-1.3.1</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/tigervnc">http://wiki.linuxfromscratch.org/blfs/wiki/tigervnc</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Tigervnc
        </h2>
        <p>
          Install <span class="application">tigervnc</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command"># Put code in place
tar -xf ../xorg-server-1.20.4.tar.bz2 \
    --strip-components=1              \
    -C unix/xserver                   &amp;&amp;
( cd unix/xserver &amp;&amp;
  patch -Np1 -i ../xserver120.patch ) &amp;&amp;

# Build viewer
cmake -G "Unix Makefiles"         \
      -DCMAKE_INSTALL_PREFIX=/usr \
      -DCMAKE_BUILD_TYPE=Release  \
      -Wno-dev . &amp;&amp;
make &amp;&amp;

# Build server
pushd unix/xserver &amp;&amp;
  autoreconf -fiv  &amp;&amp;

  CFLAGS="$CFLAGS -I/usr/include/drm" \
  ./configure $XORG_CONFIG            \
      --disable-xwayland    --disable-dri        --disable-dmx         \
      --disable-xorg        --disable-xnest      --disable-xvfb        \
      --disable-xwin        --disable-xephyr     --disable-kdrive      \
      --disable-devel-docs  --disable-config-hal --disable-config-udev \
      --disable-unit-tests  --disable-selective-werror                 \
      --disable-static      --enable-dri3                              \
      --without-dtrace      --enable-dri2        --enable-glx          \
      --with-pic &amp;&amp;
  make  &amp;&amp;
popd</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">#Install viewer
make install &amp;&amp;

#Install server
( cd unix/xserver/hw/vnc &amp;&amp; make install ) &amp;&amp;

[ -e /usr/bin/Xvnc ] || ln -svf $XORG_PREFIX/bin/Xvnc /usr/bin/Xvnc</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <span class="command"><strong>tar -xf ..
          xorg-server...</strong></span>: This command extracts the standard
          Xorg package into the tree in a location needed for modification.
        </p>
        <p>
          <code class="option">--disable ...</code>: Most options that are
          usually needed for the standard Xorg server are not needed for the
          Xvnc instance being built.
        </p>
        <p>
          <span class="command"><strong>[ -e /usr/bin/Xvnc ] || ln ...
          Xvnc</strong></span>: If the Xvnc server is not installed in the
          <code class="filename">/usr/bin</code> directory, then create a
          link so the <span class="command"><strong>vncserver</strong></span>
          script can find it.
        </p>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring Tigervnc
        </h2>
        <p>
          The user specific configuration files of vncserver resides in the
          <code class="filename">.vnc</code> directory in the user's home
          directory. The <code class="filename">xstartup</code> file in that
          directory is a script specifying what commands to be run when a VNC
          desktop is started. If no <code class="filename">xstartup</code>
          file exists, <span class=
          "command"><strong>vncserver</strong></span> will try to start an
          xterm in a twm session. An example <code class=
          "filename">xstartup</code> would be:
        </p>
        <pre class="screen">
#!/bin/sh
[ -x /etc/vnc/xstartup ] &amp;&amp; exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] &amp;&amp; xrdb $HOME/.Xresources
startlxde &amp;
</pre>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">Xvnc, vncconfig, vncpasswd, vncserver,
              vncviewer, and x0vncserver</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libvnc.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/share/doc/tigervnc-1.10.1</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="xvnc" name="xvnc"></a><span class=
                    "term"><span class=
                    "command"><strong>Xvnc</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a X VNC (Virtual Network Computing) server. It is
                    based on a standard X server, but it has a <span class=
                    "quote">&ldquo;<span class=
                    "quote">virtual</span>&rdquo;</span> screen rather than a
                    physical one.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="vncconfig" name="vncconfig"></a><span class=
                    "term"><span class=
                    "command"><strong>vncconfig</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a program to configure and control a VNC server.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="vncpasswd" name="vncpasswd"></a><span class=
                    "term"><span class=
                    "command"><strong>vncpasswd</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    allows you to set the password used to access VNC
                    desktops.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="vncserver" name="vncserver"></a><span class=
                    "term"><span class=
                    "command"><strong>vncserver</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a perl script used to start or stop a VNC server.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="vncviewer" name="vncviewer"></a><span class=
                    "term"><span class=
                    "command"><strong>vncviewer</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a client used to connect to VNC desktops.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="x0vncserver" name="x0vncserver"></a><span class=
                    "term"><span class=
                    "command"><strong>x0vncserver</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a program to make an X display on a physical terminal
                    accessible via TigerVNC or compatible viewers.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-03-19 00:57:38 -0500
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="thunderbird.html" title=
          "Thunderbird-68.6.0">Prev</a>
          <p>
            Thunderbird-68.6.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="transmission.html" title=
          "Transmission-2.94">Next</a>
          <p>
            Transmission-2.94
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="other.html" title=
          "Chapter&nbsp;41.&nbsp;Other X-based Programs">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
